import request from '@/utils/request'

// 查询采集点仪表关联列表
export function listPointMeter(query) {
  return request({
    url: '/basic/pointMeter/list',
    method: 'get',
    params: query
  })
}

// 查询采集点仪表关联详细
export function getPointMeter(pointId) {
  return request({
    url: '/basic/pointMeter/' + pointId,
    method: 'get'
  })
}

// 新增采集点仪表关联
export function addPointMeter(data) {
  return request({
    url: '/basic/pointMeter',
    method: 'post',
    data: data
  })
}

// 修改采集点仪表关联
export function updatePointMeter(data) {
  return request({
    url: '/basic/pointMeter',
    method: 'put',
    data: data
  })
}

// 删除采集点仪表关联
export function delPointMeter(pointId) {
  return request({
    url: '/basic/pointMeter/' + pointId,
    method: 'delete'
  })
}

// 导出采集点仪表关联
export function exportPointMeter(query) {
  return request({
    url: '/basic/pointMeter/export',
    method: 'get',
    params: query
  })
}

export function queryCountBYMeter(query) {
  return request({
    url: '/basic/pointMeter/queryCountBYMeter',
    method: 'get',
    params: query
  })
}
